<script setup lang="ts">
import CommonHeader from "./components/CommonHeader.vue"
import CommonFooter from "./components/CommonFooter.vue"
import MainContainer from "./components/MainContainer.vue"
import { useRoute } from "vue-router"
import { computed } from "vue"

const route = useRoute()
const isLogin = computed(() => route.name === "login")
</script>

<template>
	<el-config-provider namespace="ep">
		<CommonHeader v-if="!isLogin" />
		<MainContainer />
		<CommonFooter v-if="!isLogin" />
	</el-config-provider>
</template>
